package com.link.speechdemo.bean;

import java.util.List;

/**
 * Created by Administrator on 2016/11/2.
 */

public class WeatherJsonBean {

    private DataBean data;
    /**
     * data : {"result":[{"wind":"东北风微风","windLevel":0,"humidity":"62%","airQuality":"轻微污染","tempRange":"5℃~18℃","dateLong":1478016000,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"阴转晴","pm25":"115","date":"2016-11-02","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"7℃~18℃","dateLong":1478102400,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"晴","date":"2016-11-03","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"9℃~23℃","dateLong":1478188800,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"晴","date":"2016-11-04","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"10℃~22℃","dateLong":1478275200,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"晴转阴","date":"2016-11-05","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"10℃~17℃","dateLong":1478361600,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"多云转小雨","date":"2016-11-06","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"6℃~17℃","dateLong":1478448000,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"小雨转晴","date":"2016-11-07","city":"西安"},{"wind":"东北风微风","windLevel":0,"airQuality":"","tempRange":"4℃~17℃","dateLong":1478534400,"lastUpdateTime":"2016-11-02 13:11:39","sourceName":"中国天气网","weather":"晴转小雨","date":"2016-11-08","city":"西安"}]}
     * service : weather
     * operation : QUERY
     * semantic : {"slots":{"datetime":{"type":"DT_BASIC","date":"2016-11-02","dateOrig":"今天"},"location":{"poi":"CURRENT_POI","type":"LOC_POI","city":"CURRENT_CITY"}}}
     * text : 今天的天气怎么样?
     * webPage : {"url":"http://kcbj.openspeech.cn/service/iss?wuuid=d6b723d7cd1b82797cc9b7a6cc599bca&ver=2.0&method=webPage&uuid=0a243ce0e8221d47095d438b7722b8ccquery","header":""}
     * rc : 0
     */

    private String service;
    private String operation;
    /**
     * slots : {"datetime":{"type":"DT_BASIC","date":"2016-11-02","dateOrig":"今天"},"location":{"poi":"CURRENT_POI","type":"LOC_POI","city":"CURRENT_CITY"}}
     */

    private SemanticBean semantic;
    private String text;
    /**
     * url : http://kcbj.openspeech.cn/service/iss?wuuid=d6b723d7cd1b82797cc9b7a6cc599bca&ver=2.0&method=webPage&uuid=0a243ce0e8221d47095d438b7722b8ccquery
     * header :
     */

    private WebPageBean webPage;
    private int rc;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public SemanticBean getSemantic() {
        return semantic;
    }

    public void setSemantic(SemanticBean semantic) {
        this.semantic = semantic;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public WebPageBean getWebPage() {
        return webPage;
    }

    public void setWebPage(WebPageBean webPage) {
        this.webPage = webPage;
    }

    public int getRc() {
        return rc;
    }

    public void setRc(int rc) {
        this.rc = rc;
    }

    public static class DataBean {
        /**
         * wind : 东北风微风
         * windLevel : 0
         * humidity : 62%
         * airQuality : 轻微污染
         * tempRange : 5℃~18℃
         * dateLong : 1478016000
         * lastUpdateTime : 2016-11-02 13:11:39
         * sourceName : 中国天气网
         * weather : 阴转晴
         * pm25 : 115
         * date : 2016-11-02
         * city : 西安
         */

        private List<ResultBean> result;

        public List<ResultBean> getResult() {
            return result;
        }

        public void setResult(List<ResultBean> result) {
            this.result = result;
        }

        public static class ResultBean {
            private String wind;
            private int windLevel;
            private String humidity;
            private String airQuality;
            private String tempRange;
            private int dateLong;
            private String lastUpdateTime;
            private String sourceName;
            private String weather;
            private String pm25;
            private String date;
            private String city;

            public String getWind() {
                return wind;
            }

            public void setWind(String wind) {
                this.wind = wind;
            }

            public int getWindLevel() {
                return windLevel;
            }

            public void setWindLevel(int windLevel) {
                this.windLevel = windLevel;
            }

            public String getHumidity() {
                return humidity;
            }

            public void setHumidity(String humidity) {
                this.humidity = humidity;
            }

            public String getAirQuality() {
                return airQuality;
            }

            public void setAirQuality(String airQuality) {
                this.airQuality = airQuality;
            }

            public String getTempRange() {
                return tempRange;
            }

            public void setTempRange(String tempRange) {
                this.tempRange = tempRange;
            }

            public int getDateLong() {
                return dateLong;
            }

            public void setDateLong(int dateLong) {
                this.dateLong = dateLong;
            }

            public String getLastUpdateTime() {
                return lastUpdateTime;
            }

            public void setLastUpdateTime(String lastUpdateTime) {
                this.lastUpdateTime = lastUpdateTime;
            }

            public String getSourceName() {
                return sourceName;
            }

            public void setSourceName(String sourceName) {
                this.sourceName = sourceName;
            }

            public String getWeather() {
                return weather;
            }

            public void setWeather(String weather) {
                this.weather = weather;
            }

            public String getPm25() {
                return pm25;
            }

            public void setPm25(String pm25) {
                this.pm25 = pm25;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            @Override
            public String toString() {
                return "ResultBean{" +
                        "wind='" + wind + '\'' +
                        ", windLevel=" + windLevel +
                        ", humidity='" + humidity + '\'' +
                        ", airQuality='" + airQuality + '\'' +
                        ", tempRange='" + tempRange + '\'' +
                        ", dateLong=" + dateLong +
                        ", lastUpdateTime='" + lastUpdateTime + '\'' +
                        ", sourceName='" + sourceName + '\'' +
                        ", weather='" + weather + '\'' +
                        ", pm25='" + pm25 + '\'' +
                        ", date='" + date + '\'' +
                        ", city='" + city + '\'' +
                        '}';
            }
        }
    }

    public static class SemanticBean {
        /**
         * datetime : {"type":"DT_BASIC","date":"2016-11-02","dateOrig":"今天"}
         * location : {"poi":"CURRENT_POI","type":"LOC_POI","city":"CURRENT_CITY"}
         */

        private SlotsBean slots;

        public SlotsBean getSlots() {
            return slots;
        }

        public void setSlots(SlotsBean slots) {
            this.slots = slots;
        }

        public static class SlotsBean {
            /**
             * type : DT_BASIC
             * date : 2016-11-02
             * dateOrig : 今天
             */

            private DatetimeBean datetime;
            /**
             * poi : CURRENT_POI
             * type : LOC_POI
             * city : CURRENT_CITY
             */

            private LocationBean location;

            public DatetimeBean getDatetime() {
                return datetime;
            }

            public void setDatetime(DatetimeBean datetime) {
                this.datetime = datetime;
            }

            public LocationBean getLocation() {
                return location;
            }

            public void setLocation(LocationBean location) {
                this.location = location;
            }

            public static class DatetimeBean {
                private String type;
                private String date;
                private String dateOrig;

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getDate() {
                    return date;
                }

                public void setDate(String date) {
                    this.date = date;
                }

                public String getDateOrig() {
                    return dateOrig;
                }

                public void setDateOrig(String dateOrig) {
                    this.dateOrig = dateOrig;
                }
            }

            public static class LocationBean {
                private String poi;
                private String type;
                private String city;

                public String getPoi() {
                    return poi;
                }

                public void setPoi(String poi) {
                    this.poi = poi;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getCity() {
                    return city;
                }

                public void setCity(String city) {
                    this.city = city;
                }
            }
        }
    }

    public static class WebPageBean {
        private String url;
        private String header;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getHeader() {
            return header;
        }

        public void setHeader(String header) {
            this.header = header;
        }
    }
}
